let img = document.getElementsByTagName('img')[0]
img.onmousedown = function (e) {
  console.log(e);
}